package io.renren.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.renren.modules.sys.dao.SysCodeDao;
import io.renren.modules.sys.entity.SysCodeEntity;
import io.renren.modules.sys.service.SysCodeService;



@Service("sysCodeService")
public class SysCodeServiceImpl implements SysCodeService {
	@Autowired
	private SysCodeDao sysCodeDao;
	
	@Override
	public SysCodeEntity queryObject(Long id){
		return sysCodeDao.queryObject(id);
	}
	
	@Override
	public List<SysCodeEntity> queryList(Map<String, Object> map){
		return sysCodeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysCodeDao.queryTotal(map);
	}
	
	@Override
	public void save(SysCodeEntity sysCode){
		sysCodeDao.save(sysCode);
	}
	
	@Override
	public void update(SysCodeEntity sysCode){
		sysCodeDao.update(sysCode);
	}
	
	@Override
	public void delete(Long id){
		sysCodeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysCodeDao.deleteBatch(ids);
	}

	@Override
	public List<SysCodeEntity> queryListByTypeCode(String catTaobaoGood) {
		return sysCodeDao.queryListByTypeCode(catTaobaoGood);
	}

	@Override
	public SysCodeEntity getByCode(Long category) {
		return sysCodeDao.getByCode(category);
	}
	
}
